package act.impl;

import frwa.ActionResult;
import frwa.IAction;

import javax.servlet.http.HttpServletRequest;

public class AddFlight implements IAction {
    @Override
    public String getName() {
        return "AddFlight";
    }

    @Override
    public ActionResult perform(HttpServletRequest request) {
        ActionResult actionResult = new ActionResult();
        actionResult.setUrlAddress("flt/AddingFlight.jsp");
        FlightFormObject flightFormObject = new FlightFormObject();
        actionResult.setFormObject(flightFormObject);
        return actionResult;
    }
}
